<template>
    <div class="nav">
        <el-aside width="200px" style="background-color: rgb(238, 241, 246)">
    <el-menu :default-openeds="['1', '3']">
        <el-submenu index="1">
            <template slot="title"><i class="el-icon-house"></i><router-link :to="{name:'home'}">首页</router-link></template>
        </el-submenu>
        <el-submenu index="2">
            <template slot="title"><i class="el-icon-message"></i>学生信息管理</template>
            <el-menu-item-group>
                <el-menu-item index="2-1"><router-link :to="{name:'studentsinfo'}">学生信息录入</router-link></el-menu-item>
                <el-menu-item index="2-2"><router-link :to="{name:'searchstudentsinfo'}">学生信息查询</router-link></el-menu-item>
            </el-menu-item-group>
        </el-submenu>
        <el-submenu index="3">
            <template slot="title"><i class="el-icon-school"></i>学生成绩管理</template>
                <el-menu-item-group>
                <el-submenu index="3-4">
                    <template slot="title">学生成绩录入</template>
                <el-menu-item index="3-1" class="font"><router-link :to="{name:'entryExam'}">入学信息录入</router-link></el-menu-item>
                <el-menu-item index="3-2" class="font"><router-link :to="{name:'midExam'}">期中信息录入</router-link></el-menu-item>
                <el-menu-item index="3-3" class="font"><router-link :to="{name:'endExam'}">期末信息录入</router-link></el-menu-item>
            </el-submenu>
            <el-submenu index="3-5">
                    <template slot="title">学生成绩查询</template>
            <el-menu-item index="3-1" class="font"><router-link :to="{name:'searchEntryExam'}">入学信息查询</router-link></el-menu-item>
            <el-menu-item index="3-2" class="font"><router-link :to="{name:'searchMidExam'}">期中信息查询</router-link></el-menu-item>
            <el-menu-item index="3-3" class="font"><router-link :to="{name:'searchEndExam'}">期末信息查询</router-link></el-menu-item>
            </el-submenu>
        </el-menu-item-group>
        </el-submenu>
        <el-submenu index="4">
                <template slot="title"><i class="el-icon-pie-chart"></i><router-link :to="{name:'examanalysis'}">学生成绩分析</router-link></template>
            </el-submenu>
        </el-menu>
    </el-aside>
    </div>
</template>

<script>
    export default {
        
    }
</script>

<style scoped>
.nav{
    padding-top: 60px;
}
</style>